package com.dq.shiro;

import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * JwtToken
 *
 * @author gewenzhen
 */
public class MyToken extends UsernamePasswordToken implements AuthenticationToken {
    /**
     * Token
     */
    private String token;

    public MyToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
